/**
 * AjLog - The AspectJ based logging facade
 *
 * Copyright (C) 2009 - 2010, Marko Umek. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.ajlog.annotations.levels;


/**
 * FilterLevels contains the levels which must be mapped to the underlying Logging Framework. 
 * <br><br>
 * <b>Notice</b>: The Logging Frameworks do not make any difference between filter level and log level.
 * <br>
 * So exchanging the Logging Framework AjLog must use other mapping function.
 * <br><br>
 * <b>Caution</b>: AjLog itself will not provide any filter functionality. These is the responsibility 
 * of the used Logging Framework. 
 * 
 * 
 * @author Marko Umek
 * 
 */
public enum FilterLevel {
    // ALWAYS(Levels.ALL),
    TRACE(SeverityLevels.TRACE),
    DEBUG(SeverityLevels.DEBUG),
    INFO(SeverityLevels.INFO),
    WARNING(SeverityLevels.WARNING),
    ERROR(SeverityLevels.ERROR),
    SEVERE(SeverityLevels.SEVERE),
    FATAL(SeverityLevels.FATAL);
    
    final int filterLevel;

    private FilterLevel(int filterLevel) {
        this.filterLevel = filterLevel;
    }
    
    /**
     * @return the filter level
     */
    public int getFilterLevel() {
        return filterLevel;
    }
}

